package com.apy.module.network.interceptor

import okhttp3.Interceptor
import okhttp3.Response

/**
 * Interceptor to add auth token to requests
 */
class AuthInterceptor : Interceptor {
    override fun intercept(chain: Interceptor.Chain): Response {
        val originalRequest = chain.request()
        
        // Add your auth token here if needed
        // val token = "your_auth_token"
        
        val newRequest = originalRequest.newBuilder()
            .header("Accept", "application/json")
            .header("Content-Type", "application/json")
            // Uncomment and modify as needed
            // .header("Authorization", "Bearer $token")
            .method(originalRequest.method, originalRequest.body)
            .build()
            
        return chain.proceed(newRequest)
    }
}
